//
//  WYCScanController.m
//  WYCweibo
//
//  Created by 魏云超 on 15/11/11.
//  Copyright (c) 2015年 魏云超. All rights reserved.
//

#import "WYCScanController.h"
#import "MyTabBar.h"
@interface WYCScanController ()
//当前选中按钮
@property(nonatomic,weak)UIButton *currentSelectedBtn;

@property(nonatomic,weak)MyTabBar *customerTabBar;
@end

@implementation WYCScanController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //去除系统默认tabbar 添加在定义tabbar
    //[self.tabBar removeFromSuperview];
    //添加自定义tabbar
    //[self setupTabBar];
    
}
-(void)setupTabBar{
    //1.添加自定义
    MyTabBar *customTabBar = [[MyTabBar alloc]init];
    customTabBar.frame = self.tabBar.bounds;
    customTabBar.backgroundColor = [UIColor grayColor];
        [self.view addSubview:customTabBar];
    //将自定义tabbar添加到系统自带tababr上
    [self.tabBar addSubview:customTabBar];
    
    
    //添加2个按钮
    
    //成为自定义tabbar代理
//    customTabBar.delegate = self;
    self.customerTabBar = customTabBar;
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
